﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace GraphAPI.Model
{
	public class Entity
	{
		public Entity(Point position)
		{
			this.name = "";
			this.comment = "";
			this.position = position;
			this.weight = double.NaN;
			this.colorMark = Color.Empty;
			this.textAlign = TextAlign.Center;
			this.radius = 20;
		}

		public Entity(Entity ent)
		{
			this.name = ent.Name;
			this.comment = ent.Commentary;
			this.position = ent.Position;
			this.weight = ent.Weight;
			this.colorMark = ent.ColorMark;
			this.textAlign = ent.TextAlign;
			this.radius = ent.radius;
		}

		private string name;

		public string Name
		{
			get { return name; }
			set { name = value; }
		}

		private Point position;

		public Point Position
		{
			get { return position; }
			set { position = value; }
		}

		private double weight;

		public double Weight
		{
			get { return weight; }
			set { weight = value; }
		}

		private int radius;

		public int Radius
		{
			get { return radius; }
			set { radius = value; }
		}

		private TextAlign textAlign;

		public TextAlign TextAlign
		{
			get { return textAlign; }
			set { textAlign = value; }
		}

		private Color colorMark;

		public Color ColorMark
		{
			get { return colorMark; }
			set { colorMark = value; }
		}

        private string comment;

        public string Commentary
        {
            get { return comment; }
            set { comment = value; }
        }

		private int degree;
		public int Degree
		{
			get { return degree; }
			set { degree = value; }
		}
	}
}
